﻿<%@ Page Language="C#" MasterPageFile="~/admin/MasterPage.master" AutoEventWireup="true" CodeFile="~/admin/GruposIndicadores.aspx.cs" Inherits="GruposIndicadores" Title="GruposIndicadores" %>

<%@ Register Assembly="DevExpress.XtraCharts.v9.3.Web, Version=9.3.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.XtraCharts.Web" TagPrefix="dxch" %>
<%@ Register Assembly="DevExpress.Web.v9.3, Version=9.3.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v9.3, Version=9.3.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dxp" %>
<%@ Register assembly="DevExpress.Web.v9.3, Version=9.3.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxTabControl" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v9.3, Version=9.3.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxClasses" tagprefix="dxw" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v9.3, Version=9.3.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dxe" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v9.3, Version=9.3.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dxgv" %>
<%@ Register assembly="DevExpress.Web.v9.3, Version=9.3.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPopupControl" tagprefix="dxpc" %>
<%@ Register Assembly="DevExpress.Web.v9.3, Version=9.3.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxSplitter" TagPrefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
	<script type="text/javascript" language="javascript" src="js/GruposIndicadores.js"></script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
	
<dx:ASPxSplitter ID="ASPxSplitter1" runat="server" Height="400px" Width="100%" Styles-Separator-BackColor="#e2ebef">
	<Panes>
		<dx:SplitterPane MinSize="200px" MaxSize="500px" Size="250px" ShowCollapseBackwardButton="True" PaneStyle-Paddings-Padding="0px">
			<ContentCollection>
				<dx:SplitterContentControl ID="SplitterContentControl1" runat="server">
                     <dxgv:ASPxGridView ID="ASPxGridViewGrupos" ClientInstanceName="ASPxGridViewGrupos" runat="server" AutoGenerateColumns="false" KeyFieldName="id" Width="100%" 
						onrowinserting="ASPxGridViewGrupos_RowInserting"
						onrowupdating="ASPxGridViewGrupos_RowUpdating"
						onrowdeleting="ASPxGridViewGrupos_RowDeleting"
						onload="ASPxGridViewGrupos_Load"
						oncustomjsproperties="ASPxGridViewGrupos_CustomJSProperties"
						oncelleditorinitialize="ASPxGridViewGrupos_CellEditorInitialize">
						<Columns>
							<dxgv:GridViewCommandColumn ButtonType="Image" VisibleIndex="0" Caption="Accion" Width="80px">
								<CancelButton Visible="true" Image-Url="Images/Grid/cancel.png"></CancelButton>
								<DeleteButton Visible="true" Image-Url="Images/Grid/delete.png"></DeleteButton>
								<EditButton Visible="true" Image-Url="Images/Grid/edit.png"></EditButton>
								<UpdateButton Visible="true" Image-Url="Images/Grid/accept.png"></UpdateButton>
								<NewButton Visible="true" Image-Url="Images/Grid/add.png"></NewButton>
							</dxgv:GridViewCommandColumn>
							<dxgv:GridViewDataTextColumn VisibleIndex="1" FieldName="id" Caption="ID"/>
							<dxgv:GridViewDataTextColumn VisibleIndex="2" FieldName="nombre" Caption="Nombre"/>
						</Columns>
						<Styles Header-Font-Size="8" Cell-Font-Size="8"/>
						<Templates>
							<DataItem><div style="white-space: nowrap"><%# Container.Text %></div></DataItem>
						</Templates>
						<ClientSideEvents RowDblClick="grid_RowDblClick" FocusedRowChanged="grid_FocusedRowChanged"/>
						<Settings ShowTitlePanel="true"/>
						<SettingsBehavior ConfirmDelete="true" AllowFocusedRow="true" AllowSort="false" AllowDragDrop="false" ColumnResizeMode="Control"/>
						<SettingsEditing Mode="Inline"/>
						<SettingsText Title="GRUPOS DE INDICADORES" CommandCancel="Cancelar" CommandNew="Nuevo" CommandDelete="Eliminar" CommandEdit="Editar" CommandUpdate="Aceptar" ConfirmDelete="Esta seguro que desea eliminar el grupo?"/>
					</dxgv:ASPxGridView>
				</dx:SplitterContentControl>
			</ContentCollection>
		</dx:SplitterPane>
		<dx:SplitterPane PaneStyle-Paddings-Padding="0px">
			<ContentCollection>
				<dx:SplitterContentControl ID="SplitterContentControl2" runat="server">
                     <dx:ASPxPageControl ID="ASPxPageControl1" runat="server" Width="100%" BorderLeft-BorderWidth="0px" BorderRight-BorderWidth="0px">
						<TabPages>
							<dx:TabPage Text="Indicadores" Visible="true">
								<ContentCollection>
									<dxw:ContentControl ID="ContentControl1" runat="server">
										<div style="overflow:auto" id="divGridIndicadores">
										<dxgv:ASPxGridView ID="ASPxGridViewIndicadores" ClientInstanceName="ASPxGridViewIndicadores" runat="server" AutoGenerateColumns="false" KeyFieldName="nombre"
											oncelleditorinitialize="ASPxGridViewIndicadores_CellEditorInitialize"
											oncustomcallback="ASPxGridViewIndicadores_CustomCallback"
											onrowinserting="ASPxGridViewIndicadores_RowInserting"
											onrowupdating="ASPxGridViewIndicadores_RowUpdating"
											onrowdeleting="ASPxGridViewIndicadores_RowDeleting"
											onrowvalidating="ASPxGridViewIndicadores_RowValidating"
											onparsevalue="ASPxGridViewIndicadores_ParseValue">
											<Columns>
												<dxgv:GridViewCommandColumn ButtonType="Image" VisibleIndex="0" Caption="Accion" Width="80px">
													<CancelButton Visible="true" Image-Url="Images/Grid/cancel.png"></CancelButton>
													<DeleteButton Visible="true" Image-Url="Images/Grid/delete.png"></DeleteButton>
													<EditButton Visible="true" Image-Url="Images/Grid/edit.png"></EditButton>
													<UpdateButton Visible="true" Image-Url="Images/Grid/accept.png"></UpdateButton>
													<NewButton Visible="true" Image-Url="Images/Grid/add.png"></NewButton>
												</dxgv:GridViewCommandColumn>
												<dxgv:GridViewDataTextColumn VisibleIndex="10" FieldName="nombre" Caption="Nombre" EditFormSettings-ColumnSpan="8"/>
												<dxgv:GridViewDataTextColumn VisibleIndex="20" FieldName="descripcion" Caption="Descripcion" EditFormSettings-ColumnSpan="8"/>
												<dxgv:GridViewDataComboBoxColumn VisibleIndex="30" FieldName="id_fuente_datos" Caption="Fuente de Datos" EditFormSettings-ColumnSpan="8">
													<PropertiesComboBox ValueField="id" TextField="nombre">
														<ClientSideEvents Init='function(s, e) {indicador_IdFuenteDatos = s.GetValue(); }' ValueChanged='function(s, e) {indicador_IdFuenteDatos = s.GetValue(); }'/>
													</PropertiesComboBox>
												</dxgv:GridViewDataComboBoxColumn>
												<dxgv:GridViewDataTextColumn VisibleIndex="40" FieldName="string_conexion" Caption="String conexion" EditFormSettings-ColumnSpan="8"/>
												<dxgv:GridViewDataMemoColumn VisibleIndex="50" FieldName="query" Caption="Consulta" EditFormSettings-ColumnSpan="8"/>
												<dxgv:GridViewDataComboBoxColumn VisibleIndex="60" FieldName="id_formato_valor_actual" Caption="Formato valor actual" EditFormSettings-ColumnSpan="4">
													<PropertiesComboBox ValueField="id" TextField="nombre">
														<ClientSideEvents Init='function(s, e) {indicador_IdFormatoValorActual = s.GetValue(); }' ValueChanged='function(s, e) {indicador_IdFormatoValorActual = s.GetValue(); }'/>
													</PropertiesComboBox>
												</dxgv:GridViewDataComboBoxColumn>
												<dxgv:GridViewDataComboBoxColumn VisibleIndex="70" FieldName="id_formato_variacion" Caption="Formato variacion" EditFormSettings-ColumnSpan="4">
													<PropertiesComboBox ValueField="id" TextField="nombre">
														<ClientSideEvents Init='function(s, e) {indicador_IdFormatoVariacion = s.GetValue(); }' ValueChanged='function(s, e) {indicador_IdFormatoVariacion = s.GetValue(); }'/>
													</PropertiesComboBox>
												</dxgv:GridViewDataComboBoxColumn>
												<dxgv:GridViewDataTextColumn VisibleIndex="80" FieldName="minimo" Caption="Minimo (%)" EditFormSettings-ColumnSpan="2"/>
												<dxgv:GridViewDataTextColumn VisibleIndex="90" FieldName="maximo" Caption="Maximo (%)" EditFormSettings-ColumnSpan="2"/>
												<dxgv:GridViewDataComboBoxColumn VisibleIndex="100" FieldName="maximiza_minimiza" Caption="Maximizar / Minimizar" EditFormSettings-ColumnSpan="4">
													<PropertiesComboBox ValueField="id" TextField="nombre">
														<ClientSideEvents Init='function(s, e) {indicador_MaxMin = s.GetValue(); }' ValueChanged='function(s, e) {indicador_MaxMin = s.GetValue(); }'/>
													</PropertiesComboBox>
												</dxgv:GridViewDataComboBoxColumn>
												<dxgv:GridViewDataCheckColumn VisibleIndex="110" FieldName="utilizar_cache" Caption="Utilizar cache" UnboundType="Integer" EditFormSettings-ColumnSpan="2">
													<PropertiesCheckEdit DisplayTextChecked="Si" DisplayTextUnchecked="No"/>
												</dxgv:GridViewDataCheckColumn>
												<dxgv:GridViewDataTextColumn VisibleIndex="120" FieldName="intervalo_actualizacion" Caption="Itervalo actualizacion (hs)" EditFormSettings-ColumnSpan="3"/>
												<dxgv:GridViewDataTextColumn VisibleIndex="130" FieldName="cant_historicos" Caption="Cant. datos historicos" EditFormSettings-ColumnSpan="3"/>
												<dxgv:GridViewDataTextColumn VisibleIndex="140" FieldName="nombre_responsable" Caption="Nombre responsable" EditFormSettings-ColumnSpan="3"/>
												<dxgv:GridViewDataTextColumn VisibleIndex="150" FieldName="apellido_responsable" Caption="Apellido responsable" EditFormSettings-ColumnSpan="5"/>
												<dxgv:GridViewDataTextColumn VisibleIndex="150" FieldName="email_responsable" Caption="E-Mail responsable" EditFormSettings-ColumnSpan="4"/>
												<dxgv:GridViewDataTextColumn VisibleIndex="160" FieldName="tel_responsable" Caption="Telefono responsable" EditFormSettings-ColumnSpan="4"/>
											</Columns>
											<Styles>
												<Cell HorizontalAlign="Left" VerticalAlign="Middle" Font-Size="8" Paddings-Padding="2px"/>
												<Header Font-Size="8"/>
											</Styles>
											<Templates>
												<DataItem><div style="white-space: nowrap"><%# Container.Text %></div></DataItem>
												<EditForm>
													<div style="padding:4px 4px 3px 4px">
														<dxgv:ASPxGridViewTemplateReplacement ID="Editors" ReplacementType="EditFormEditors" runat="server"/>
													</div>
													<div style="text-align:right; padding:2px 2px 2px 2px">
														<input type="button" value="Probar consulta" onclick='mostrarResultadoIndicador("<%# Container.UniqueID.Replace('$', '_') %>");' />
														<dxgv:ASPxGridViewTemplateReplacement ID="UpdateButton" ReplacementType="EditFormUpdateButton" runat="server"/>
														<dxgv:ASPxGridViewTemplateReplacement ID="CancelButton" ReplacementType="EditFormCancelButton" runat="server"/>
													</div>
												</EditForm>
											</Templates>
											<ClientSideEvents EndCallback="gridViewIndicadoresEndCallback" RowDblClick="gridDetail_RowDblClick" Init="gridViewIndicadoresInit"/>
											<Settings ShowTitlePanel="true"/>
											<SettingsEditing Mode="PopupEditForm" PopupEditFormAllowResize="true" PopupEditFormModal="true" PopupEditFormHorizontalAlign="WindowCenter" PopupEditFormVerticalAlign="WindowCenter" EditFormColumnCount="8" PopupEditFormWidth="600px"/>
											<SettingsBehavior ConfirmDelete="true" AllowFocusedRow="true" AllowSort="false" AllowDragDrop="false" ColumnResizeMode="Control"/>
											<SettingsText Title="Indicadores" CommandCancel="Cancelar" CommandNew="Nuevo" CommandDelete="Eliminar" CommandEdit="Editar" CommandUpdate="Aceptar" ConfirmDelete="Esta seguro que desea eliminar el Indicador?" PopupEditFormCaption="Edicion de Indicador"/>
										</dxgv:ASPxGridView>
										</div>
									</dxw:ContentControl>
								</ContentCollection>
							</dx:TabPage>
							<dx:TabPage Text="Graficos" Visible="true">
								<ContentCollection>
									<dxw:ContentControl ID="ContentControl2" runat="server">
										<div style="overflow:auto" id="divGridGraficos">
										<dxgv:ASPxGridView ID="ASPxGridViewGraficos" ClientInstanceName="ASPxGridViewGraficos" runat="server" AutoGenerateColumns="false" KeyFieldName="nombre"
											oncelleditorinitialize="ASPxGridViewGraficos_CellEditorInitialize"
											oncustomcallback="ASPxGridViewGraficos_CustomCallback"
											onrowinserting="ASPxGridViewGraficos_RowInserting"
											onrowupdating="ASPxGridViewGraficos_RowUpdating"
											onrowdeleting="ASPxGridViewGraficos_RowDeleting"
											onrowvalidating="ASPxGridViewGraficos_RowValidating"
											onparsevalue="ASPxGridViewIndicadores_ParseValue">
											<Columns>
												<dxgv:GridViewCommandColumn ButtonType="Image" VisibleIndex="0" Caption="Accion" Width="80px">
													<CancelButton Visible="true" Image-Url="Images/Grid/cancel.png"></CancelButton>
													<DeleteButton Visible="true" Image-Url="Images/Grid/delete.png"></DeleteButton>
													<EditButton Visible="true" Image-Url="Images/Grid/edit.png"></EditButton>
													<UpdateButton Visible="true" Image-Url="Images/Grid/accept.png"></UpdateButton>
													<NewButton Visible="true" Image-Url="Images/Grid/add.png"></NewButton>
												</dxgv:GridViewCommandColumn>
												<dxgv:GridViewDataTextColumn VisibleIndex="10" FieldName="nombre" Caption="Nombre" EditFormSettings-ColumnSpan="8"/>
												<dxgv:GridViewDataTextColumn VisibleIndex="20" FieldName="titulo" Caption="Titulo" EditFormSettings-ColumnSpan="8"/>
												<dxgv:GridViewDataTextColumn VisibleIndex="30" FieldName="descripcion" Caption="Descripcion" EditFormSettings-ColumnSpan="8"/>
												<dxgv:GridViewDataComboBoxColumn VisibleIndex="40" FieldName="id_fuente_datos" Caption="Fuente de Datos" EditFormSettings-ColumnSpan="8">
													<PropertiesComboBox ValueField="id" TextField="nombre">
														<ClientSideEvents Init='function(s, e) {grafico_IdFuenteDatos = s.GetValue(); }' ValueChanged='function(s, e) {grafico_IdFuenteDatos = s.GetValue(); }'/>
													</PropertiesComboBox>
												</dxgv:GridViewDataComboBoxColumn>
												<dxgv:GridViewDataTextColumn VisibleIndex="50" FieldName="string_conexion" Caption="String conexion" EditFormSettings-ColumnSpan="8"/>
												<dxgv:GridViewDataMemoColumn VisibleIndex="60" FieldName="query" Caption="Consulta" EditFormSettings-ColumnSpan="8"/>
												<dxgv:GridViewDataComboBoxColumn VisibleIndex="70" FieldName="tipo_grafico" Caption="Tipo grafico" EditFormSettings-ColumnSpan="4">
													<PropertiesComboBox ValueField="id" TextField="nombre">
														<ClientSideEvents Init='function(s, e) {grafico_TipoGrafico = s.GetValue(); }' ValueChanged='function(s, e) {grafico_TipoGrafico = s.GetValue(); }'/>
													</PropertiesComboBox>
												</dxgv:GridViewDataComboBoxColumn>
												<dxgv:GridViewDataComboBoxColumn VisibleIndex="80" FieldName="formato_valor" Caption="Formato valor" EditFormSettings-ColumnSpan="4">
													<PropertiesComboBox ValueField="id" TextField="nombre">
														<ClientSideEvents Init='function(s, e) {grafico_IdFormatoValor = s.GetValue(); }' ValueChanged='function(s, e) {grafico_IdFormatoValor = s.GetValue(); }'/>
													</PropertiesComboBox>
												</dxgv:GridViewDataComboBoxColumn>
												<dxgv:GridViewDataTextColumn VisibleIndex="90" FieldName="titulo_eje_x" Caption="Titulo eje X" EditFormSettings-ColumnSpan="3"/>
												<dxgv:GridViewDataTextColumn VisibleIndex="100" FieldName="titulo_eje_y" Caption="Titulo eje Y" EditFormSettings-ColumnSpan="5"/>
												<dxgv:GridViewDataComboBoxColumn VisibleIndex="105" FieldName="cantidad_series" Caption="Cantidad series" EditFormSettings-ColumnSpan="1">
													<PropertiesComboBox ValueField="id" TextField="nombre">
														<ClientSideEvents Init='function(s, e) {grafico_CantidadSeries = s.GetValue(); }' ValueChanged='function(s, e) {grafico_CantidadSeries = s.GetValue(); }'/>
													</PropertiesComboBox>
												</dxgv:GridViewDataComboBoxColumn>
												<dxgv:GridViewDataTextColumn VisibleIndex="110" FieldName="titulo_serie_1" Caption="Titulo serie 1" EditFormSettings-ColumnSpan="3"/>
												<dxgv:GridViewDataTextColumn VisibleIndex="120" FieldName="titulo_serie_2" Caption="Titulo serie 2" EditFormSettings-ColumnSpan="3"/>
												<dxgv:GridViewDataComboBoxColumn VisibleIndex="130" FieldName="nombre_indicador_asociado" Caption="Indicador asociado" PropertiesComboBox-ValueField="id" PropertiesComboBox-TextField="nombre" EditFormSettings-ColumnSpan="3"/>
												<dxgv:GridViewDataCheckColumn VisibleIndex="140" FieldName="bajo_demanda" Caption="Bajo demanda" UnboundType="Integer" EditFormSettings-ColumnSpan="5">
													<PropertiesCheckEdit DisplayTextChecked="Si" DisplayTextUnchecked="No"/>
												</dxgv:GridViewDataCheckColumn>
												<dxgv:GridViewDataCheckColumn VisibleIndex="150" FieldName="utilizar_cache" Caption="Utilizar cache" UnboundType="Integer" EditFormSettings-ColumnSpan="2">
													<PropertiesCheckEdit DisplayTextChecked="Si" DisplayTextUnchecked="No"/>
												</dxgv:GridViewDataCheckColumn>
												<dxgv:GridViewDataTextColumn VisibleIndex="160" FieldName="intervalo_actualizacion" Caption="Itervalo actualizacion (hs)" EditFormSettings-ColumnSpan="6"/>
											</Columns>
											<Styles>
												<Cell HorizontalAlign="Left" VerticalAlign="Middle" Font-Size="8" Paddings-Padding="2px"/>
												<Header Font-Size="8"/>
											</Styles>
											<Templates>
												<DataItem><div style="white-space: nowrap"><%# Container.Text %></div></DataItem>
												<EditForm>
													<div style="padding:4px 4px 3px 4px">
														<dxgv:ASPxGridViewTemplateReplacement ID="Editors" ReplacementType="EditFormEditors" runat="server"/>
													</div>
													<div style="text-align:right; padding:2px 2px 2px 2px">
														<input type="button" value="Probar consulta" onclick='mostrarResultadoGrafico("<%# Container.UniqueID.Replace('$', '_') %>");' />
														<dxgv:ASPxGridViewTemplateReplacement ID="UpdateButton" ReplacementType="EditFormUpdateButton" runat="server"/>
														<dxgv:ASPxGridViewTemplateReplacement ID="CancelButton" ReplacementType="EditFormCancelButton" runat="server"/>
													</div>
												</EditForm>
											</Templates>
											<ClientSideEvents EndCallback="gridViewGraficosEndCallback" RowDblClick="gridDetail_RowDblClick" Init="gridViewGraficosInit"/>
											<Settings ShowTitlePanel="true"/>
											<SettingsEditing Mode="PopupEditForm" PopupEditFormAllowResize="true" PopupEditFormModal="true" PopupEditFormHorizontalAlign="WindowCenter" PopupEditFormVerticalAlign="WindowCenter" EditFormColumnCount="8" PopupEditFormWidth="600px"/>
											<SettingsBehavior ConfirmDelete="true" AllowFocusedRow="true" AllowSort="false" AllowDragDrop="false" ColumnResizeMode="Control"/>
											<SettingsText Title="Graficos" CommandCancel="Cancelar" CommandNew="Nuevo" CommandDelete="Eliminar" CommandEdit="Editar" CommandUpdate="Aceptar" ConfirmDelete="Esta seguro que desea eliminar el Grafico?" PopupEditFormCaption="Edicion de Grafico"/>
										</dxgv:ASPxGridView>
										</div>
									</dxw:ContentControl>
								</ContentCollection>
							</dx:TabPage>
							<dx:TabPage Text="Usuarios" Visible="true">
								<ContentCollection>
									<dxw:ContentControl ID="ContentControl3" runat="server">
										<div style="overflow:auto">
										<dxgv:ASPxGridView ID="ASPxGridViewUsuarios" ClientInstanceName="ASPxGridViewUsuarios" runat="server" AutoGenerateColumns="false" KeyFieldName="id_usuario"
											oncelleditorinitialize="ASPxGridViewUsuarios_CellEditorInitialize"
											oncustomcallback="ASPxGridViewUsuarios_CustomCallback"
											onrowinserting="ASPxGridViewUsuarios_RowInserting"
											onrowdeleting="ASPxGridViewUsuarios_RowDeleting">
											<Columns>
												<dxgv:GridViewCommandColumn ButtonType="Image" VisibleIndex="0" Caption="Accion" Width="80px">
													<CancelButton Visible="true" Image-Url="Images/Grid/cancel.png"></CancelButton>
													<DeleteButton Visible="true" Image-Url="Images/Grid/delete.png"></DeleteButton>
													<UpdateButton Visible="true" Image-Url="Images/Grid/accept.png"></UpdateButton>
													<NewButton Visible="true" Image-Url="Images/Grid/add.png"></NewButton>
												</dxgv:GridViewCommandColumn>
												<dxgv:GridViewDataComboBoxColumn VisibleIndex="10" FieldName="id_usuario" Caption="Nombre">
													<PropertiesComboBox TextField="nombre" ValueField="nombre"/>
												</dxgv:GridViewDataComboBoxColumn>
											</Columns>
											<Styles>
												<Cell HorizontalAlign="Left" VerticalAlign="Middle" Font-Size="8" Paddings-Padding="2px"/>
												<Header Font-Size="8"/>
											</Styles>
											<ClientSideEvents Init="gridViewUsuariosInit" />
											<Settings ShowTitlePanel="true"/>
											<SettingsEditing Mode="Inline"/>
											<SettingsBehavior ConfirmDelete="true" AllowFocusedRow="true" AllowSort="false" AllowDragDrop="false"/>
											<SettingsText Title="Usuarios" CommandCancel="Cancelar" CommandNew="Vincular" CommandDelete="Desvincular" CommandUpdate="Aceptar" ConfirmDelete="Esta seguro que desea desvincular el Usuario?" PopupEditFormCaption="Edicion de Usuario"/>
										</dxgv:ASPxGridView>
										</div>
									</dxw:ContentControl>								
								</ContentCollection>
							</dx:TabPage>
						</TabPages>
					</dx:ASPxPageControl>
				</dx:SplitterContentControl>
			</ContentCollection>
		</dx:SplitterPane>
	</Panes>
</dx:ASPxSplitter>
	
<dxpc:ASPxPopupControl HeaderText="Resultado del indicador" EncodeHtml="False" id="popupResultadoIndicador" ClientInstanceName="popupResultadoIndicador" runat="server" EnableViewState="False" AllowDragging="true" PopupHorizontalAlign="WindowCenter" EnableClientSideAPI="true">
	<ContentCollection>
		<dxpc:PopupControlContentControl>
			<dx:ASPxCallbackPanel ID="CallbackPanelResultadoIndicador" ClientInstanceName="CallbackPanelResultadoIndicador" runat="server" Width="300px" OnCallback="CallbackPanelResultadoIndicadorOnCallback">
			<PanelCollection>
				<dxp:PanelContent>
					<div>
						<table width="100%"><tr>
						<td>
							<table>
							<tr>
								<td style="width:140px; text-align:left; font-weight:bold;">Valor: </td>
								<td style="text-align:right"><dxe:ASPxLabel ID="lblValorIndicador" runat="server"></dxe:ASPxLabel></td>
							</tr>
							<tr>
								<td style="width:140px; text-align: left; font-weight:bold;">Valor esperado: </td>
								<td style="text-align:right"><dxe:ASPxLabel ID="lblUmbralIndicador" runat="server"></dxe:ASPxLabel></td>
							</tr>
							<tr>
								<td style="width:140px; text-align: left; font-weight:bold;">Variacion: </td>
								<td style="text-align:right"><dxe:ASPxLabel ID="lblVariacionIndicador" runat="server"></dxe:ASPxLabel></td>
							</tr>
							</table>
						</td>
						<td align="center" style="width:60px;">
							<div style="text-align:center">Alarma</div>
							<div><img id="imgEstadoAlarmaIndicador" runat="server" alt="" src=""/></div>
						</td>
						</tr></table>
					</div>					
					<div>
						<dxe:ASPxLabel ID="lblErrorIndicador" ClientInstanceName="lblErrorIndicador" runat="server" ClientVisible="true" BackColor="#ffd9da" Border-BorderColor="#cc0000" ForeColor="#cc0000" Width="100%"/>
					</div>
				</dxp:PanelContent>
			</PanelCollection>
			</dx:ASPxCallbackPanel>
		</dxpc:PopupControlContentControl>
	</ContentCollection>
</dxpc:ASPxPopupControl>

<dxpc:ASPxPopupControl HeaderText="Resultado del grafico" EncodeHtml="False" id="popupResultadoGrafico" ClientInstanceName="popupResultadoGrafico" runat="server" EnableViewState="False" AllowDragging="true" PopupHorizontalAlign="WindowCenter" EnableClientSideAPI="true">
	<ContentCollection>
		<dxpc:PopupControlContentControl>
			<dx:ASPxCallbackPanel ID="CallbackPanelResultadoGrafico" ClientInstanceName="CallbackPanelResultadoGrafico" runat="server" OnCallback="CallbackPanelResultadoGraficoOnCallback">
			<PanelCollection>
				<dxp:PanelContent>
					<div>
						<dxch:WebChartControl ID="chartResultadoGrafico" runat="server" Width="700px" Height="500">
						</dxch:WebChartControl>
					</div>
					<div>
						<dxe:ASPxLabel ID="lblErrorGrafico" ClientInstanceName="lblErrorGrafico" runat="server" ClientVisible="true" BackColor="#ffd9da" Border-BorderColor="#cc0000" ForeColor="#cc0000" Width="100%"/>
					</div>
				</dxp:PanelContent>
			</PanelCollection>
			</dx:ASPxCallbackPanel>
		</dxpc:PopupControlContentControl>
	</ContentCollection>
</dxpc:ASPxPopupControl>
	
</asp:Content>

